//
//  CategoryView.m
//  WisdomStar
//
//  Created by 谭飞 on 2018/11/14.
//  Copyright © 2018年 zhangliwen. All rights reserved.
//

#import "CategoryView.h"

@interface CategoryView ()

@property (weak, nonatomic) IBOutlet UIView *contentView;

@end

@implementation CategoryView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.contentView.layer.cornerRadius = self.contentView.xmg_height/2;
    [self.contentView setRoundBorder:kSeparatorColor radius:self.contentView.xmg_height/2];
    
    WEAKSELF;
    [self.contentView addGestureWithGestureType:WJ_TapGesture completeHandler:^{
        if (weakSelf.didSelectedCallback) {
            weakSelf.didSelectedCallback(self.cateLab);
        }
    }];
}

@end
